﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NinjaToolbox.PhysicsSystem
{
    public interface IPhysicsShape
    {
        Matrix4x4 Matrix { get; set; }
        Bounds AABB { get; }
        Vector3 GetWorldCenter();
        bool IsIntersects(IPhysicsShape other);
        bool IsIntersects(Vector3 lineBegin, Vector3 lineEnd);
        bool IsContainPoint(Vector3 point);
        Vector3 MassPointToEdge(Vector3 massPoint, Vector3 outsidePoint);
        Vector3 GetEdgeNormal(Vector3 massPoint, Vector3 outsidePoint);
        void DrawGizmos(Color color);
    }
}
